package org.jeecg.modules.basesource.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.basesource.entity.SbSyncRecord;
import org.jeecg.modules.basesource.mapper.SbSyncRecordMapper;
import org.jeecg.modules.basesource.service.ISbSyncRecordService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 申报同步日志表
 * @Author: jeecg-boot
 * @Date:   2022-03-14
 * @Version: V1.0
 */
@Service
public class SbSyncRecordServiceImpl extends ServiceImpl<SbSyncRecordMapper, SbSyncRecord> implements ISbSyncRecordService {

    @Override
    public SbSyncRecord getByDjxhSsq(String djxh, String ssqq, String ssqz) {
        LambdaQueryWrapper<SbSyncRecord> wrapper = Wrappers.lambdaQuery(SbSyncRecord.class);
        wrapper.eq(SbSyncRecord::getDjxh,djxh).eq(SbSyncRecord::getSkssqq,ssqq).eq(SbSyncRecord::getSkssqz,ssqz).eq(SbSyncRecord::getType,"206");
        return super.getOne(wrapper);
    }
}
